package com.zsrt.java.day20170104.wrl.demo07;

public class Student07 {
	
	/**
	 * 被所有的对象共享
	 */
	private static int studentCount;
	
	/**
	 * 被共享，而且不能修改的：加上 final
	 */
	public static final String COUNTRY = "中国";
	
	private String name;
	
	public Student07(String name){
		this.setName(name);
		studentCount++;
	}


	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public static int getStudentCount() {
		return studentCount;
	}

}
